updating oE atan2

atan2

include math.e 
namespace math 
public function atan2(atom y, atom x) 

calculate the arctangent of a ratio.

Parameters:
  1. y : an atom, the numerator of the ratio
  2. x : an atom, the denominator of the ratio
Returns:

An atom, which is equal to arctan(y/x), except that it can handle zero denominator and is more accurate.

Example 1:
a = atan2(10.5, 3.1) 
-- a is 1.283713958 
See Also:

arctan

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu